using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MecRobGest.GUI
{
    public partial class GUIMaterialStats : Form
    {
        public GUIMaterialStats()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //Informe de todas las OF
            Reports.Materiales OFResumen1 = new Reports.Materiales();
            OFResumen1.SetParameterValue("DataIni", dateTimePicker1.Value);
            OFResumen1.SetParameterValue("DataFi", dateTimePicker2.Value);
            MecRobGest.GUI.GUIOFStatsrpt f = new MecRobGest.GUI.GUIOFStatsrpt();
            f.crystalReportViewer1.ReportSource = OFResumen1;
            f.MdiParent = this.Parent.FindForm();
            f.Show();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Reports.MaterialesStock OFResumen1 = new Reports.MaterialesStock();
            OFResumen1.SetParameterValue("DataIni", dateTimePicker1.Value);
            OFResumen1.SetParameterValue("DataFi", dateTimePicker2.Value);
            MecRobGest.GUI.GUIOFStatsrpt f = new MecRobGest.GUI.GUIOFStatsrpt();
            f.crystalReportViewer1.ReportSource = OFResumen1;
            f.MdiParent = this.Parent.FindForm();
            f.Show();
        }

        
    }
}